<?php
$this->pageTitle = $typeInfo['title'];

$rootUrl = Yii::app()->params['document_root'];
$uploadDir = Yii::app()->params['upload_dir'] . 'newsletters/thumb/';
$uploadUrl = $rootUrl . Yii::app()->params['upload_url'] . 'newsletters/thumb/';
?>

<!--<h1 class="txtColor1">TIN TỨC VỀ Y KHOA TIẾN BỘ NHẤT</h1>-->
<h1 class="txtColor1">
    <?php
    $alias = Yii::t('app', 'alias_title');
    if ( isset($alias[$typeInfo['type_id']]) ) {
        echo $alias[$typeInfo['type_id']];
    } else {
        echo mb_strtoupper($typeInfo['title'], 'utf-8');
    }
    ?>
</h1>

<?php
$this->widget('ext.front.listview.DListview', array(
    'dataProvider' => $data,
    'itemView'=>'_list',
    'viewData' => array(
        'uploadDir' => $uploadDir,
        'uploadUrl' => $uploadUrl,
        'rootUrl'   => $rootUrl,
    ),
    'template' => '{items}{pager}',
));
?>